public class ChromoBinary extends Chromo
{
	public String label;

	public static int GENE_LENGTH = Parameters.geneSize;
	public static int CHROMO_LENGTH = GENE_LENGTH * Parameters.numGenes;

	/*******************************************************************************
	 * INSTANCE VARIABLES *
	 *******************************************************************************/

	private static double randnum;

	public ChromoBinary()
	{
		label = "Chromo Binary"; // for debug

		char geneBit;
		chromo = "";
		for (int i = 0; i < Parameters.numGenes; i++) {
			for (int j = 0; j < Parameters.geneSize; j++) {
				randnum = Search.r.nextDouble();
				if (randnum > 0.5)
					geneBit = '0';
				else
					geneBit = '1';
				this.chromo = chromo + geneBit;
			}
		}

	}

}